package com.lzb.permanentcalendar.basic.utils;


import com.lzb.permanentcalendar.BaseApplication;
import com.lzb.permanentcalendar.bean.CityBean;

import java.util.List;

public class CityUtils {


    public static String getCityId(String cityName) {
        List<CityBean> items = BaseApplication.items;
        for (int i = 0; i < items.size(); i++) {
            if (items.get(i).getCityName().equals(cityName)) {
                return items.get(i).getCityId();
            }
        }
        return "2";

    }

}
